<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数据绑定</title>
    <script src="../../resources/src/js/angular.js"></script>
</head>
<body ng-app="">
    <div ng-init="price = 0; count = 0">
        价格：<input type="text" ng-model="price">
        数量：<input type="text" ng-model="count">
        <br>
        总价：{{price * count}}
    </div>
</body>
</html>